package com.txw.javaCore.model.mapper;

import com.txw.javaCore.model.entity.Item;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Item record);

    int insertSelective(Item record);

    Item selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Item record);

    int updateByPrimaryKey(Item record);

    List<Item> selectAll(@Param("search") String search);

    int insertBatch(List<Item> items);

    Long countAll(@Param("search") String search);
}